package com.dream.springmvc.value;

import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author panwen
 */
@Data
@AllArgsConstructor
public class NumberValue implements Value<Double> {
    private Double value;
    @JsonCreator
    public static NumberValue fromJson(Double val) {
        return new NumberValue(val);
    }
}
